import Vue from 'vue'
// import Router from 'vue-router'
import Router from './myRouter/index.js'
Vue.use(Router)

const router = new Router({
  mode: 'hash',
  routes: [
    {
      path: '/',
      component: () => import('../view/Home.vue')
    },
    {
      path: '/result',
      component: () => import('../view/Result.vue'),
      meta: { title: '中国移动积分兑换' }
    },
    {
      path: '/other',
      component: () => import('../view/Other.vue'),
      meta: { title: 'other' }
    },
  ]
})

export default router